package com.leonzhangxf.beta;

import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.Service;
import org.apache.dubbo.rpc.RpcContext;

/**
 * @author leonzhangxf
 */
@Service
@org.springframework.stereotype.Service
@Slf4j
public class BetaServiceImpl implements BetaService {

    @Override
    public String callBeta(String msg) {
        log.info("receive call beta, msg: {}, ip: {}", msg,
            RpcContext.getContext().getAttachment("call.ip"));
        return "beta roger that";
    }
}
